package com.kuaidi100.sdk.request.cloud;

/**
 * @Author: api.kuaidi100.com
 * @Date: 2020-11-25 15:47
 */
public class COrderCancelReq extends CloudBaseReq{
    /**
     * 任务ID
     */
    private String taskId;
    /**
     * 订单ID
     */
    private String orderId;
    /**
     * 取消原因，例：暂时不寄件了
     */
    private String cancelMsg;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getCancelMsg() {
        return cancelMsg;
    }

    public void setCancelMsg(String cancelMsg) {
        this.cancelMsg = cancelMsg;
    }

    public static COrderCancelReqBuilder newBuilder() {
        return new COrderCancelReqBuilder();
    }

    public static final class COrderCancelReqBuilder {
        private String taskId;
        private String orderId;
        private String cancelMsg;
        private String secret_key;
        private String secret_code;
        private String secret_sign;
        private String secret_secret;
        private String url;

        private COrderCancelReqBuilder() {
        }

        public static COrderCancelReqBuilder aCOrderCancelReq() {
            return new COrderCancelReqBuilder();
        }

        public COrderCancelReqBuilder withTaskId(String taskId) {
            this.taskId = taskId;
            return this;
        }

        public COrderCancelReqBuilder withOrderId(String orderId) {
            this.orderId = orderId;
            return this;
        }

        public COrderCancelReqBuilder withCancelMsg(String cancelMsg) {
            this.cancelMsg = cancelMsg;
            return this;
        }

        public COrderCancelReqBuilder withSecret_key(String secret_key) {
            this.secret_key = secret_key;
            return this;
        }

        public COrderCancelReqBuilder withSecret_code(String secret_code) {
            this.secret_code = secret_code;
            return this;
        }

        public COrderCancelReqBuilder withSecret_sign(String secret_sign) {
            this.secret_sign = secret_sign;
            return this;
        }

        public COrderCancelReqBuilder withSecret_secret(String secret_secret) {
            this.secret_secret = secret_secret;
            return this;
        }

        public COrderCancelReqBuilder withUrl(String url) {
            this.url = url;
            return this;
        }

        public COrderCancelReq build() {
            COrderCancelReq cOrderCancelReq = new COrderCancelReq();
            cOrderCancelReq.setTaskId(taskId);
            cOrderCancelReq.setOrderId(orderId);
            cOrderCancelReq.setCancelMsg(cancelMsg);
            cOrderCancelReq.setSecret_key(secret_key);
            cOrderCancelReq.setSecret_code(secret_code);
            cOrderCancelReq.setSecret_sign(secret_sign);
            cOrderCancelReq.setSecret_secret(secret_secret);
            cOrderCancelReq.setUrl(url);
            return cOrderCancelReq;
        }
    }
}
